package com.hyy.bean;


public class Merchandise {

  	private long id;
  	private String productName;
  	private double price;
  	private long stock;
  	private String img;
  	private long categoryid;
	private long sales;

	public Merchandise() {
	}

	public Merchandise(long id, String productName, double price, long stock, String img,
					   long categoryid,long sales) {
		this.id = id;
		this.productName = productName;
		this.price = price;
		this.stock = stock;
		this.img = img;
		this.categoryid = categoryid;
		this.sales = sales;
	}

	public Merchandise(String productName, double price, long stock, String img, long categoryid, long sales) {
		this.productName = productName;
		this.price = price;
		this.stock = stock;
		this.img = img;
		this.categoryid = categoryid;
		this.sales = sales;
	}

	public long getSales() {
		return sales;
	}

	public void setSales(long sales) {
		this.sales = sales;
	}

	public long getId() {
    return id;
  }

  	public void setId(long id) {
    this.id = id;
  }


  	public String getProductName() {
    return productName;
  }

 	 public void setProductName(String productName) {
    this.productName = productName;
  }


 	 public double getPrice() {
    return price;
  }

 	 public void setPrice(double price) {
    this.price = price;
  }


 	 public long getStock() {
    return stock;
  }

 	 public void setStock(long stock) {
    this.stock = stock;
  }


 	 public String getImg() {
    return img;
  }

  	public void setImg(String img) {
    this.img = img;
  }


  public long getCategoryid() {
    return categoryid;
  }

  public void setCategoryid(long categoryid) {
    this.categoryid = categoryid;
  }

	@Override
	public String toString() {
		return "Merchandise{" +
				"id=" + id +
				", productName='" + productName + '\'' +
				", price=" + price +
				", stock=" + stock +
				", img='" + img + '\'' +
				", categoryid=" + categoryid +
				'}';
	}
}
